package com.skywork.domain.base;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

import lombok.Data;
import tk.mybatis.mapper.annotation.ColumnType;


@Data
public class IdEntity implements Serializable {

	private static final long serialVersionUID = 1L;

	public static String[] IGNORE_PROPERTIES_FROM_INPUT_PAGE = new String[] { "id", "createBy", "createDate", "modifyBy", "modifyDate" };

	@Id
//	@Column(name = "id")
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	protected Long id;

	protected Long createBy;

	protected Date createDate;

	protected Long modifyBy;

	protected Date modifyDate;

	@ColumnType(typeHandler = com.skywork.utils.MyEnumTypeHanlder.class)
	protected ActiveFlag activeFlag = ActiveFlag.ACTIVE;

//	@Override
//	public String toString() {
//		String s = ToStringBuilder.reflectionToString(this);
//		return s;
//	}

}
